package com.mask.im.business.controller;
import com.mask.im.business.annotation.AesCrypto;
import com.mask.im.business.annotation.AccessBarrier;
import com.mask.im.business.model.entity.UserComplaints;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.service.UserComplaintsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(tags = "用户投诉模块")
@RestController
public class UserComplaintsController {

	@Autowired
	private UserComplaintsService userComplaintsService;

	@ApiOperation("用户投诉")
	@PostMapping("/users/userComplaints")
	@AesCrypto
	@AccessBarrier(size = 10,limitTime = 6000)
	public RestResponse<String> saveUserComplaints(@RequestBody UserComplaints userComplaints){
		return userComplaintsService.saveUserComplaints(userComplaints);
	}
}

